package net.wanho.controller;

import lombok.RequiredArgsConstructor;
import net.wanho.po.Store;
import net.wanho.service.StoreService;
import net.wanho.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Author：汤小洋
 * Date：2024-10-24 13:51
 * Description：<描述>
 */
@RestController
@RequestMapping("/store")
public class StoreController {

    @Autowired
    private StoreService storeService;

    @RequestMapping("/store-list")
    public R list(){
        List<Store> list = storeService.list();
        return R.success(list);
    }

}
